<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form:form method="post" action="add" enctype="multipart/form-data" modelAttribute="home">
	小区名称<form:input path="name"/><br>
	单元楼<form:input path="building"/><br>
	门牌号<form:input path="number"/><br>
	实景图<input type="file" name="myFile"><br>
	出租状态<select name="status">
		<option value="0">已租</option>
		<option value="1">待租</option>
	</select><br>
	挂牌时间<input type="date" name="listingTime"><br>
	房屋类型<select name="typeId">
		<c:forEach items="${list }" var="list">
			<option value="${list.id }">${list.name }</option>
		</c:forEach>
	</select><br>
	<input type="submit" value="添加">
</form:form>
</body>
</html>